import { Component, OnInit, ViewChild } from '@angular/core';
import { MajorListComponent } from '../major-list/major-list.component';

@Component({
  selector: 'app-major-view',
  templateUrl: './major-view.component.html',
  styleUrls: ['./major-view.component.less'],
})
export class MajorViewComponent implements OnInit {
  /**
   * 详情组件
   */
  @ViewChild('majorListComponent', null)
  majorListComponent: MajorListComponent;

  constructor() {}

  ngOnInit() {}

  /**
   * 新增
   */
  add(): void {
    this.majorListComponent.create();
  }
}
